/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-04-05     lenovo       the first version
 */
#include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>
#include "sensor_bs_bmp280.h"


#define BMP_NAME "bmp280"


int bmp280_port(void)
{
    struct rt_sensor_config cfg;
    cfg.intf.dev_name = BMP280_I2CBUS_NAME;
    cfg.intf.user_data = (void *)BMP280_ADDR_DEFAULT;
    rt_hw_bmp280_init("bmp280", &cfg);
    return 0;
}
INIT_APP_EXPORT(bmp280_port);






